package com.zrf.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrf.gulimall.common.database.utils.PageUtils;
import com.zrf.gulimall.order.entity.OrderItemEntity;

import java.util.List;
import java.util.Map;

/**
 * 订单项信息
 *
 * @author zrf
 * @email 120662332@qq.com
 * @date 2021-01-23 17:31:14
 */
public interface OrderItemService extends IService<OrderItemEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 获取订单下的所有订单项
	 * @param orderSn 订单号
	 * @return
	 */
	List<OrderItemEntity> getByOrderSn(String orderSn);

	/**
	 * 批量获取订单项
	 * @param orderSnList 订单编号集合
	 * @return
	 */
	List<OrderItemEntity> getByOrderSns(List<String> orderSnList);
}

